package com.dayuanit.dy15.ebook.ebookadminbackoffice.mapper;

import com.dayuanit.dy15.ebook.ebookadminbackoffice.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxt
 * @since 2020-05-25
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> listUserRoles(Integer userId);

    List<String> listPerms(Integer roleId);

}
